//美化滚动条
*:not(.el-scrollbar__wrap)::-webkit-scrollbar {
  width: 6px;
  height: 10px;
  cursor: pointer;
}

*:not(.el-scrollbar__wrap)::-webkit-scrollbar-thumb {
  opacity: 0.5;
  // background-color: #eee;
  border-radius: 2em;
}

*:not(.el-scrollbar__wrap)::-webkit-scrollbar-track {
  width: 6px;
  height: 10px;
  background-color: transparent;
  border-radius: 2em;
}

//disabled color
[class^=el-].is-disabled {
  [class$=__inner], span[class$=__label] {
    color: inherit;
  }
  &.is-checked [class$=__inner]{
    border-color: #409ef6;
    background: #409ef6;
    &:after{
      color: inherit;
    }
  }
}

//table下的button
.table-buttons{
  display: flex;
  align-items: center;
  justify-content: space-around;
  >.el-button+.el-button{
    margin: 0;
  }
}

.form-footer{
  text-align: right;
}

.content-menu{
  min-width: auto!important;
  .menu_item_expand_icon{
    display: none;
  }
  .menu_item_label{
    flex-basis: auto;
  }
}
//drawer
.el-drawer__header{
  height: 50px;
  margin: 0;
  padding-top: 0;
  border-bottom: @common-dashed-border;
  >span{
    display: flex;
    align-items: center;
    &:before{
      border: 2px solid #02a1e9;
      display: inline-block;
      content: '';
      height: .9em;
      margin: 0 6px 0 -6px;
    }
  }
}

//s
s{
  opacity: 0.6;
}

//popover
.el-popover__reference-wrapper{
  *{
    cursor: pointer!important;
  }
  .el-link.el-link--danger.is-disabled{
    color: #F56C6C;
  }
  .el-switch.is-disabled{
    opacity: unset;
  }
}

//dropdown
.el-dropdown-menu{
  >.el-dropdown-menu__item{
    padding: 0 10px;
    >*{
      width: 100%;
    }
  }
}

//树形页面的基本样式
.tree-page{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  >*{
    flex-shrink: 0;
  }
  .tree-page-block{
    margin-top: 20px;
    flex-grow: 2;
    flex-shrink: 1;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

//默认树形块的样式
.tree-block{
  border: @common-border;
  padding: 20px;
  text-align: center;
  >.el-tree{
    text-align: left;
    display: inline-block;
    width: 100%;
    .el-tree-node__content{
      height: 40px;
    }
    .custom-tree-node{
      height: 40px;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: @common-border;
      >.tree-node-label{
        flex-grow: 2;
      }
      >.tree-node-btn{
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        >*{
          height: 25px;
          padding: 0 10px;
        }
      }
    }
  }
}

/*menu*/
.el-menu--vertical{
  min-width: 200px;
  .el-menu-item{
    text-align: center;
    padding: 0!important;
    &.is-active{
      color: inherit;
    }
    &:hover{
      >a{
        outline: 0;
        background-color: #ecf5ff;
      }
    }
    >a{
      display: block;
      text-decoration: none;
      color: inherit;
      &.router-link-exact-active{
        outline: 0;
        background-color: #ecf5ff;
        color: @common-color;
      }
    }
  }
  .el-submenu__title{
    padding-right: 40px;
    display: flex;
    align-items: center;
  }
  i.menu-icon{
    margin-right: 4px;
    font-size: inherit;
  }
}

.ql-editor{
  white-space: unset!important;
  img{
    width: 100%;
  }
  .ql-video{
    position: relative;
    width: 100%;
    padding-bottom: calc(100% / 1.6);
    background: #000;
    >video{
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      object-fit: contain;
      outline: none;
      width: 100%;
    }
  }
}

.block{
  display: block!important;
}

*{
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/*步骤条样式*/
.step{
  height: 100%;
  width: 100%;
  .step-header{
    display: flex;
    height: 80px;
    align-items: center;
    >.el-steps{
      width: 100%;
    }
  }
  .step-content{
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 15px 65px;
  }
  .step-buttons{
    text-align: center;
    height: 40px;
    >.el-button{
      min-width: 104px;
    }
  }
}

/*textarea*/
.el-textarea{
  >textarea{
    font-family: inherit;
  }
}

/*可编辑table*/
.edit-table-form{
  >.form-row{
    display: flex;
    align-items: center;
    &:not(:last-child){
      padding-bottom: 10px;
      border-bottom: @dark-dashed-border;
    }
    &.saved-row:not(:last-child){
      padding-bottom: 0;
      border-bottom: @dark-border;
    }
    &:not(:first-child){
      padding-top: 10px;
    }
    >*{
      flex-shrink: 0;
    }
  }
  .el-divider{
    height: 40px;
    margin: 0 10px;
  }
  .el-button{
    width: 30px;
    height: 30px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .el-input{
    >.el-input__inner{
      border-top: none;
      border-left: none;
      border-right: none;
      border-radius: 0;
      &[readonly=readonly]{
        border-bottom: none;
      }
    }
  }
}

//dialog内滚
.force-inner-scroll{
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  .el-dialog{
    margin: 0!important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    .el-dialog__header, .el-dialog__footer{
      flex-shrink: 0;
    }
    .el-dialog__body{
      flex-grow: 2;
      overflow-x: hidden;
      overflow-y: auto;
    }
  }
}

//垂直排列的列表按钮
.column-table-buttons{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  >*{
    margin: 2px 0!important;
  }
}

//水平换行排列的列表按钮
.wrap-table-buttons{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  >*{
    margin: 2px 0!important;
  }
}

//info页common样式
.info-block{
  >.info-header{
    height: 80px;
    background: @table-header-color;
    display: flex;
    padding: 0 30px;
    align-items: center;
    justify-content: space-between;
    >.info-status{
      color: @danger-color;
    }
    >.info-button{
      display: inline-flex;
      >*:not(:first-child){
        margin-left: 10px;
      }
      >.btn-divider{
        background: #fff;
        height: auto;
        &+*{
          margin-left: 0;
        }
      }
    }
  }
  >.info-content{
    border: @common-border;
    border-top: none;
    padding: 0 25px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    >.info-item{
      .info-item-header{
        height: 60px;
        display: flex;
        align-items: center;
      }
      .YTable-header{
        display: none;
      }
      .info-total{
        text-align: right;
        height: 55px;
        line-height: 55px;
        >span{
          color: @danger-color;
        }
      }
    }
  }
}

.visible-cell{
  overflow: visible;
  >.cell{
    overflow: visible;
  }
}

//闪烁动画
@keyframes blink {
  from {
    opacity: 1.0;
  }
  50% {
    opacity: 0.1;
  }
  to {
    opacity: 1.0;
  }
}

.no-padding{
  padding: 0;
}